package com.jackstraw.jack_base.rules.entity.mapstruct;


import com.jackstraw.jack_base.rules.entity.bo.SceneActuatorBo;
import com.jackstraw.jack_base.rules.entity.po.SceneActuatorPo;
import com.jackstraw.jack_base.util.entity.mapstruct.BasicMapstructMapper;
import com.jackstraw.jack_base.util.entity.mapstruct.DateMapper;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;

import java.util.Collection;
import java.util.List;

@Mapper(componentModel = "spring", uses = {DateMapper.class})
public interface SceneActuatorMapstruct {


    /**
     * 创建一个Bo对象，并将入参To对象内相同字段赋值给Bo
     *
     * @param to
     * @return
     */
    @Mappings(value = {})
    SceneActuatorBo bo(SceneActuatorPo to);

    /**
     * 类似{@link BasicMapstructMapper#bo(Object)} 方法，不过是处理集合
     *
     * @param tos
     * @return
     */
    @Mappings(value = {})
    List<SceneActuatorBo> boToS(Collection<SceneActuatorPo> tos);

}
